import request from '@/utils/request';
// 平台属性列表attrInfoList  GET     /admin/product/attrInfoList/{category1Id}/{category2Id}/{category3Id}
// 删除平台属性deleteAttr    DELETE  /admin/product/deleteAttr/{attrId}
// 保存平台属性saveAttrInfo  POST    /admin/product/saveAttrInfo
export default {
    getAttrListInfo(category1Id, category2Id, category3Id) {
        return request.get(`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`);
    },
    // 添加属性
    saveAttr(data) {
        return request.post(`/admin/product/saveAttrInfo`, data);
    },
    // 删除平台属性
    deleteAttr(attrId) {
        return request.delete(`/admin/product/deleteAttr/${attrId}`);
    }
};